import React from 'react'
import { useSelector } from 'react-redux'
export default function Mine() {
    const adminSlice=useSelector(state=>state.adminSlice)
    console.log(adminSlice.admin);
    const {admin}=adminSlice
  return (
    <div style={{display:'flex'}}>
        <img style={{width:'200px'}} src={"http://localhost:8090/upload/"+admin.photo}/>
        <div style={{marginLeft:'10px',fontSize:'20px'}}>
            <p>账号：{admin.loginId}</p>
            <p>姓名：{admin.name}</p>
            <p>电话：{admin.phone}</p>
            <p>角色：{admin.roleId}</p>
        </div>
    </div>
  )
}
